#/bin/bash
username=Your username
password=Your password

wget rz.muc.edu.cn/srun_portal_pc.php>/dev/null 2>&1
ip=$(cat srun_portal_pc.php |grep user_ip|sed 's/.*value="//'|sed 's/".*//')
rm -f srun_portal_pc.php*
curl -d "action=login&ac_id=1&user_ip=$ip&nas_ip=&user_mac=&url=&username=$username&password=$password&save_me=1" "rz.muc.edu.cn/srun_portal_pc.php?ac_id=1&">/dev/null 2>&1
echo "Login successfully!"
